package service;

import common.MyOrder;
import common.OrderItem;
import pojo.Comment;
import pojo.HeiZaiOrder;
import pojo.User;

import java.util.List;
import java.util.Map;

public interface IOrderService {

    User newOrder(OrderItem orderItem);

    List<MyOrder> myOrder(Integer uid);

    List<MyOrder> latestOrder(Map<String, Object> map);

    List<MyOrder> completedOrder(  Map<String, Object> map );

    int receiveOrder(Integer id);

    int send(Integer id);

    int confirm(Integer id);

    int comment(Comment comment);

    Comment myComment(Integer id);

    int selectTotal(Map<String, Object> map);

    int selectCompletedTotal(Map<String, Object> map);
}
